package com.asset.dao;

import com.asset.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Administrator on 2016/8/31.
 */
@Component
public interface UserMapper {
    public void addUser(User user);
    public void editUser(User user);
    public List<User> listUser(@Param("name") String name,@Param("index") Integer index,@Param("length") Integer length);
    public User getUserById(Long id);
    public Integer checkUserNameIsExited(@Param("name") String name);
    public User getUserByLoginInfo(@Param("name")String name,@Param("password")String password);
}
